﻿namespace CemsTransfer.Models
{
    public class CemsSerialInfo
    {
        public string PortName { get; set; }//串口名称
        public int BaudRate { get; set; }//串口波特率
        public int Parity { get; set; }//串口校验 0=无，1=奇校验，2=偶校验
        public int DataBits { get; set; }//串口数据位
        public int StopBits { get; set; }//串口停止位
    }

    public class PlatformInfo
    {
        public string ServerIP { get; set; }//平台IP
        public int ServerPort { get; set; }//平台端口
    }

    public class DeviceConfigInfo
    {
        public string DeciceIds { get; set; }//设备id,英文逗号分隔
        public int Interval { get; set; }//命令发送间隔
    }

    public class User
    {
        public string username { get; set; }
        public string password { get; set; }
    }
}
